import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *
testCase = "DBshop026_商品咨询删除"
firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu2(firefox,'商品管理','商品咨询')
firefox.find_element_by_link_text("删除").click()
firefox.switch_to.alert.accept()
# 断言

try:
    readFile().find_element_by_link_text("删除").is_displayed()
    writeLog("%s 测试失败" % (testCase))
    getPhoto(dr)
except:
    writeLog("%s 测试通过" % (testCase))
firefox.quit()

